package wei.xinya.core.edu;

public class Number {
	 public static void main(String[] args) {
         double[] nums = {1.4, 1.5, 1.6, -1.4, -1.5, -1.6};

         for (double d : nums) {
             test(d);
         }
     }
	 private static void test(double num) {
		 System.out.println("Math.floor(" + num + ")=" + Math.floor(num));   
		 System.out.println("Math.round(" + num + ")=" + Math.round(num));   
		 System.out.println("Math.ceil(" + num + ")=" + Math.ceil(num));   
	 } 
}
